-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RNMobile] Upgrade compile and target sdk version to Android API 31 #44610
Conversation
I tested the demo project using a simulator and haven't found any issues. Looks like the editor is working nice with Android 12 🎊 . |
packages/react-native-bridge/android/react-native-bridge/build.gradle
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the changes out via the demo app. I ran through all the flows that I could think of that might be impacted by the dependency changes. Everything worked as expected.
Looks good 👍
I noticed that the List block is not rendering the items properly (see attached screenshots). The interesting part is that I tried using the latest changes from Gutenberg
|
The issue is not related to Android 12 but using a newer version of
|
After debugging the issue, I realized that is not a bug per se but caused by the introduction of a new dimension value (reference) to control the vertical margin of blocks. By default the value is This has been fixed in fdc7cc8 by simply setting the value to |
Size Change: 0 B Total Size: 1.27 MB ℹ️ View Unchanged
|
4522c75
to
0e18084
Compare
Related PRs:
What?
Upgrade
react-native-aztec
,react-native-bridge
andreact-native-editor
projects to Android 12 (API 31).Why?
Google Play requires apps to update to Android 12 (API level 31) before 31 November 1, 2022.
How?
compileSdkVersion
andtargetSdkVersion
properties of all Android projects have been updated to API 31.Additionally, the main activity of the demo Android demo project is now exported. This is a behavior change required when using Android 12 related to safer component exporting (reference).
The Android dependencies of forked repositories have been also updated to Android 12:
Testing Instructions
This change doesn't affect a specific area, hence to test it we should basically smoke test the editor and check that works as expected.
Screenshots or screencast
N/A